package com.simon.mctm.biz.sys.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * @author Jiajie.Mao
 * @date 2018/6/8 9:49
 **/
@Data
public class UserDto {

    @ApiModelProperty(value = "id，新增时不用传入")
    private Integer id;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名必须要传",required = true)
    private String username;

    @ApiModelProperty(value = "密码，新增时传入，更新时不传入")
    private String password;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "上次重置密码时间,可不传")
    private Date lastpasswordreset;

    @ApiModelProperty(value = "创建时间,可不传")
    private Date createtime;

    @ApiModelProperty(value = "更新时间,可不传")
    private Date modifytime;

    @ApiModelProperty(value = "角色ID，按,进行拼接")
    private String roleId;

    @ApiModelProperty(value = "部门ID，按,进行拼接")
    private String deptId;

}
